public class ActivityEntry extends AtomBase {
    
	public List<Collection> collection { get; set; }
    
    public ActivityEntry() { 
    	super();
    } 
 
	public ActivityEntry(XmlStreamReader reader) {
		super(reader);
	}		

	//public override void handleStartTag(XmlStreamReader reader, String nodeName) {
	//	System.debug(LoggingLevel.INFO, '\n\n Handling the start tag in the activity entry...\n');
	//}
	
	/*public override void InitExtensionCollections() {
		collection = new List<Collection>();
	}*/
	
	public String getActivityId() {
		return extensions.get('activity').value; 
	}

   /* public override String ExtensionsToAPP() {
    	String out = '';
    	out += getCollectionElement();
        return out;
    }*/

    /*public override void ParseExtensionStartTag(XmlStreamReader reader, String nodeName) {
		if (nodeName == 'collection') {
			collection.add(new Collection(reader));
		}
    }*/

  	public String getCollectionElement() {
  		String out = '';
  		if (collection != null && collection.size() > 0) {
  			for (Collection c : collection) {
  				out += c.ToAPP();
  			}
  		}
  		return out;
  	
  	}
  	
   	public String getActivityNodesUrl() {
   		return getLink('self').href;
/*  		if (collection != null && collection.size() > 0) {
  			return collection[0].href;
  		} else {
  			return null;
  		}*/
  	}
    
}